package o;

import android.text.TextUtils;
import com.huawei.appgallery.jsonkit.api.annotation.FieldSecurity;
import com.huawei.appgallery.jsonkit.api.annotation.SecurityLevel;

public class byk extends brj {
    public static final String APIMETHOD = "client.jgw.forum.topic.post";
    private static final String LINE_BREAK_FLAG = "[br]";
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String attachment_;
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String content_;
    private long tid_;
    private Long updatePid_;

    public static class d {
        private Long ˊ;
        private String ˋ;
        private String ˎ = "";
        private long ˏ;
        private String ॱ;

        public d(byg o_byg, boolean z) {
            this.ˏ = o_byg.ˋ();
            if (o_byg.ॱ() != null) {
                this.ˎ = String.valueOf(o_byg.ॱ().ˏॱ());
            }
            this.ॱ = o_byg.ˊ();
            if (z) {
                this.ˊ = Long.valueOf(o_byg.ˏ());
            } else {
                this.ˊ = null;
            }
        }

        public d ॱ(String str) {
            this.ˋ = str;
            return this;
        }

        public byk ˊ() {
            byk o_byk = new byk();
            o_byk.ˏ(this.ˏ);
            if (!TextUtils.isEmpty(this.ॱ)) {
                this.ॱ = this.ॱ.replaceAll("[\\t\\n\\r]", byk.LINE_BREAK_FLAG);
            }
            o_byk.ˊ(this.ॱ);
            o_byk.ˋ(this.ˎ);
            o_byk.ॱ(this.ˊ);
            o_byk.ॱ(bsv.ॱ(this.ˋ));
            return o_byk;
        }
    }

    public String ˏ() {
        return APIMETHOD;
    }

    public void ˏ(long j) {
        this.tid_ = j;
    }

    public void ˊ(String str) {
        this.content_ = str;
    }

    public void ˋ(String str) {
        this.attachment_ = str;
    }

    public void ॱ(Long l) {
        this.updatePid_ = l;
    }
}
